package com.jumi.microservice.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jumi.microservice.domain.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;


import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 商城素材表
 * </p>
 *
 * @author liuz
 * @since 2020-07-27
 */
@TableName("commodity_source_material")
public class SourceMaterialDO extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "素材主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "商品spu id")
    private Long spuGoodsId;

    @ApiModelProperty(value = "商品spu名称")
    private String spuGoodsName;

    @ApiModelProperty(value = "商品分类(一级)id")
    private Long categoryId;

    @ApiModelProperty(value = "素材分类:  0: 全部,1: 商品素材, 2: 拉新素材, 3: 聚米日签, 4: 商学院动态,5: 活动宣导 ")
    private Integer sourceClassfy;

    @ApiModelProperty(value = "素材描述")
    private String materialDescription;

    @ApiModelProperty(value = "素材图片（图片之间用|来断开）")
    private String sourceMaterialImage;

    @ApiModelProperty(value = "素材模块 1商品素材，2发现推荐")
    private Integer moduleType;

    @ApiModelProperty(value = "状态，1启用，0.禁用")
    private Integer status;

    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    private Integer isDel;

    @ApiModelProperty(value = "添加人")
    private String creater;

    @ApiModelProperty(value = "添加时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改人")
    private String modifier;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "素材视频")
    private String videoUrl;

    @ApiModelProperty(value = "素材视频缩略图")
    private String videoPicUrl;

    @ApiModelProperty(value = "素材内容类型(1: 图片, 2:视频)")
    private Integer sourceType;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getSpuGoodsId() {
        return spuGoodsId;
    }

    public void setSpuGoodsId(Long spuGoodsId) {
        this.spuGoodsId = spuGoodsId;
    }

    public String getMaterialDescription() {
        return materialDescription;
    }

    public void setMaterialDescription(String materialDescription) {
        this.materialDescription = materialDescription;
    }

    public String getSourceMaterialImage() {
        return sourceMaterialImage;
    }

    public void setSourceMaterialImage(String sourceMaterialImage) {
        this.sourceMaterialImage = sourceMaterialImage;
    }

    public Integer getModuleType() {
        return moduleType;
    }

    public void setModuleType(Integer moduleType) {
        this.moduleType = moduleType;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getModifier() {
        return modifier;
    }

    public void setModifier(String modifier) {
        this.modifier = modifier;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public String getSpuGoodsName() {
        return spuGoodsName;
    }

    public void setSpuGoodsName(String spuGoodsName) {
        this.spuGoodsName = spuGoodsName;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public Integer getSourceClassfy() {
        return sourceClassfy;
    }

    public void setSourceClassfy(Integer sourceClassfy) {
        this.sourceClassfy = sourceClassfy;
    }

    public String getVideoUrl() {
        return videoUrl;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }

    public String getVideoPicUrl() {
        return videoPicUrl;
    }

    public void setVideoPicUrl(String videoPicUrl) {
        this.videoPicUrl = videoPicUrl;
    }

    public Integer getSourceType() {
        return sourceType;
    }

    public void setSourceType(Integer sourceType) {
        this.sourceType = sourceType;
    }
}
